<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
    <style>
    .cc{
   background: red;
   border: aqua 2px solid;
   width:200px;
   height:100px;
   text-align: center;
   font-weight: 100;
   line-height: 100px;
    }
    </style>
</head>

<body>
    <div id="app">
        <div class="cc" @mousemove='position'>
           {{x}}---{{y}}
        </div>
    </div>
    <script>
        var vm=new Vue({
           el:'#app',
           data:{
               x:0,
                 
                 y:0},
           methods:{
               position:function(event){
                   this.x=event.offsetX,
                   this.y=event.offsetY

               }
           }
        });
    </script>
</body>

</html>